home *** CD-ROM | disk | FTP | other *** search
/ Megazin 1 / Megazin - Issue 1 (1993-01-23)(Vicious)_006.png < prev    next >
Portable Network Graphic  |  1993-01-01  |  30KB  |  752x576  |  8-bit (22 colors)
Labels: text | screenshot | font | number
OCR: MEGAZIN # 1 Starfields First of all you need a table with all the starting coords and starting Written By Twain Pain/Vicious speeds of the stars. Then what you do is, that you add the speed to the Did you ever wonder how some coders x-coords each vertical-blank (VB) and incredible looking then simply compare the x-coord with can Make starfields that look even better 3d the width of your screen, When it's the real thing? Yes? Then than big, just subtract the width of this too the screen. In assembly: course is something for explain of you. I'11 will knowledge Most the basic on how to code a starfield _update LEA coords, a0 MOVE 7a0), do and give you (in addition) a couple of to play the (1) ADD 4(a0) , d0 sources with. For (2) CMP #width, d0 sources, just look in the ( 2) SOURCES-directory on BMI dont now for the course ... this disk. But (3) SUB dont RTS #width, d0 THE ONEWAY 20 STARFIELD _coords DC.W We' 11 DC.W x-coord, y-coord, speed with a simple 2d x-coord, y-coord, speed etc. starfield, just scrolling from left to start right. The princible is quite easy. This example only works for one star, RND Article: 031 Page: 01/08 Reading Time: 00:01:13 HENU